package Example7;

/**
 * 抽象的Mobile建造者
 */
public abstract class MobileBuilder {
    protected Mobile mobile = new Mobile();

    protected abstract MobileBuilder buildName(String name);

    public abstract MobileBuilder buildCPU(String cpu);

    public abstract MobileBuilder buildGPU(String gpu);

    public abstract MobileBuilder buildRAM(String ram);

    public abstract MobileBuilder buildROM(String rom);

    public Mobile create(){
        return mobile;
    }
}
